package com.zs.demo.common.response;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/* @Desc: 响应状态码
 * @author:zhengs
 * @Time: 2018/11/20 10:07
 * @Copyright: © zhengs 版权所有  
 * @Warning: 本内容仅限于本公司内部传阅,禁止外泄或用于其它商业目的
 */
@AllArgsConstructor
public enum CommonStatus implements IResponseStatus {
    OK(200,"操作成功"),
    FAIL(600,"操作失败"),
    ADD_FAIL(601,"添加失败"),
    DEL_FAIL(602,"删除失败"),
    UPDATE_FAIL(603,"更新失败"),
    WEB_PARAM_FAIL(604,"参数验证失败"),
    DB_PARAM_FAIL(605,"数据格式异常"),
    INNER_ERROR(606,"系统内部错误，请联系管理员！");

    public Integer status;

    public String msg;

    public Integer getStatus(){
        return this.status;
    }

    public String getMsg(){
        return this.msg;
    }
}
